/**
 * Created by duqunxing on 2017/10/31.
 */
export const MsgAPI = {
//报警通道后端
//分页
  channelsPageListV2: "api/msgAlarm/v2/bspagelist?format=json",
  //通道添加方法
  insertChannel: "api/msgAlarm?format=json",
  //通道删除接口
  deleteChannel: "api/msgAlarm/delete?format=json",
  //批量删除
  delChannels: "api/msgAlarm/deleteMsgAlarms?format=json",
  //通道无参查询
  getChannel: "api/msgAlarm?format=json",
  //根据id查询
  getChannelById: "api/msgAlarm/getById?format=json",
  //通道修改接口
  updateChannel: "api/msgAlarm/edit?format=json",

  //规则后端
  //分页
  rulesPageListV2: "api/msgRule/v2/bspagelist?format=json",
  //规则添加方法
  insertRule: "api/msgRule?format=json",
  //规则删除接口
  deleteRule: "api/msgRule/delete?format=json",
  //批量删除
  delRules: "api/msgRule/deleteMsgRules?format=json",
  //规则无参查询
  getRule: "api/msgRule?format=json",
  //根据id查询
  getRuleById: "api/msgRule/getById?format=json",
  //规则修改接口
  updateRule: "api/msgRule/edit?format=json",

  //模板后端
  //分页
  templatesPageListV2: "api/msgTemplates/v2/bspagelist?format=json",
  //模板添加方法
  insertTemplate: "api/msgTemplates?format=json",
  //模板删除接口
  deleteTemplate: "api/msgTemplates/delete?format=json",
  //批量删除
  delTemplates: "api/msgTemplates/deleteTemplates?format=json",
  //模板无参查询
  getTemplate: "api/msgTemplates?format=json",
  //根据id查询
  getTemplateById: "api/msgTemplates/getById?format=json",
  //模板修改接口
  updateTemplate: "api/msgTemplates/edit?format=json",

  //实例后端
  //分页
  instancesPageListV2: "api/msgAlarmCase/v2/bspagelist?format=json",
  //添加方法
  insertInstance: "api/msgAlarmCase/addAlarmCaseByMsgRule?format=json",
  //删除接口
  deleteInstance: "api/msgAlarmCase/deleteAlarmCase?format=json",
  //批量删除
  delInstances: "api/msgAlarmCase/deleteAlarmCases?format=json",
  //无参查询
  getInstance: "api/msgAlarmCase/findAlarmCase?format=json",
  //根据id查询
  getInstanceById: "api/msgAlarmCase/findAlarmCaseAndMsgRuleByAlarmId?format=json",
  //修改接口
  updateInstance: "api/msgAlarmCase/updateAlarmCaseAndMsgRule?format=json",
  //规则查看
  lookRule: "api/msgAlarmCase/getAlarmRulesByMsgCaseId?format=json",
  //获取所有通道
  getAllChannel: "api/msgAlarm/getAllMsgAlarms?format=json",
  //批量添加报警规则方法
  batchAddAlarmRule: "api/msgAlarmCase/addAlarmRule?format=json",

  //报警信息后端
  //分页
  alarmRecordPageListV2: "api/msgContent/v2/bspagelist?format=json",
  //获取一条报警信息
  getMsgContentById: "api/msgContent/msg/id",
  //更新报警信息的处理人等信息
  editMsgContent: "api/msgContent/msg/edit",
  //下载电子报告
  exportExcelData: "api/msgContent/alarm/information/download",
  //发送电子报告到邮箱
  sendAlarmInformation: "api/msgContent/alarm/information/send",

  //获取行政区划关联树
  getRetrieveRegionsTree: "api/regionsTree/getRetrieveRegionsTree?format=json",
  //根据regionCode获取行政区划关联树
  getRegionsTreeByRegionCode: "api/regionsTree/getRegionsTreeByRegionCode?format=json",

  // 导航头部消息报警订阅地址
  // 实时报警信息
  getWarnSiteInfo: 'api/sendLog/pushAlarm?format=json',
  // 修改报警信息状态
  putWarnSiteStatus: 'api/sendLog',

  //报警设置
  //添加或修改
  addOrUpateCofig: "api/msgAlarmCase/addUserDefinedRule?format=json",
  //获取所有
  getRules: "api/msgAlarmCase/getUserDefinedRule?format=json",
  // 报警内容汇总
  getAlarmContentSummary : "api/msgContent/getAlarmContentSummary?format=json"
}
